package com.aaa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class test_result {
    Integer id;
    String name;
    String phone;
    Integer forward;
    Integer inversion;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//从页面传值到controller的时候，自动解析字符串日期到date
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date create_time;
    Integer test_plan_id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getForward() {
        return forward;
    }

    public void setForward(Integer forward) {
        this.forward = forward;
    }

    public Integer getInversion() {
        return inversion;
    }

    public void setInversion(Integer inversion) {
        this.inversion = inversion;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getTest_plan_id() {
        return test_plan_id;
    }

    public void setTest_plan_id(Integer test_plan_id) {
        this.test_plan_id = test_plan_id;
    }

    public test_result() {
    }

    public test_result(Integer id, String name, String phone, Integer forward, Integer inversion, Date create_time, Integer test_plan_id) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.forward = forward;
        this.inversion = inversion;
        this.create_time = create_time;
        this.test_plan_id = test_plan_id;
    }

    @Override
    public String toString() {
        return "test_result{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", forward=" + forward +
                ", inversion=" + inversion +
                ", create_time=" + create_time +
                ", test_plan_id=" + test_plan_id +
                '}';
    }
}

